package com.server.multipartrequest;

import java.io.File;

import com.oreilly.servlet.multipart.FileRenamePolicy;

public class FileRenamePolicyUUID implements FileRenamePolicy {
	
	private String targetName;
	
	public FileRenamePolicyUUID(String targetName){
		this.targetName = targetName;
	}

	@Override
	public File rename(File f) {
		return new File(f.getParent(),targetName);
	}

}
